package com.burstly.lib.network.beans.cookie;

import com.burstly.lib.util.LoggerExt;
import java.io.Serializable;
import java.text.MessageFormat;

public class CookieHolder
  implements Serializable, Cloneable
{
  protected static final LoggerExt LOG = LoggerExt.getInstance();
  protected static final String TAG = "CookieHolder";
  private static final long serialVersionUID = -6865683656316770538L;
  private transient String domain;
  private transient String expires;
  private Integer maxage;
  private String name;
  private transient String path;
  private String value;

  public CookieHolder()
  {
  }

  public CookieHolder(String paramString1, String paramString2)
  {
    this.name = paramString1;
    this.value = paramString2;
  }

  public CookieHolder(String paramString1, String paramString2, Integer paramInteger)
  {
    this(paramString1, paramString2);
    this.maxage = paramInteger;
  }

  public CookieHolder(String paramString1, String paramString2, String paramString3, String paramString4, Integer paramInteger, String paramString5)
  {
    this(paramString1, paramString2, paramInteger);
    this.domain = paramString3;
    this.expires = paramString4;
    this.path = paramString5;
  }

  public CookieHolder clone()
  {
    try
    {
      CookieHolder localCookieHolder = (CookieHolder)super.clone();
      return localCookieHolder;
    }
    catch (CloneNotSupportedException localCloneNotSupportedException)
    {
      LOG.logThrowable("CookieHolder", localCloneNotSupportedException);
    }
    return null;
  }

  public boolean equals(Object paramObject)
  {
    if (this == paramObject);
    CookieHolder localCookieHolder;
    do
    {
      do
      {
        return true;
        if (paramObject == null)
          return false;
        if (getClass() != paramObject.getClass())
          return false;
        localCookieHolder = (CookieHolder)paramObject;
        if (this.name != null)
          break;
      }
      while (localCookieHolder.name == null);
      return false;
    }
    while (this.name.equals(localCookieHolder.name));
    return false;
  }

  public String getDomain()
  {
    return this.domain;
  }

  public String getExpires()
  {
    return this.expires;
  }

  public Integer getMaxage()
  {
    return this.maxage;
  }

  public String getName()
  {
    return this.name;
  }

  public String getPath()
  {
    return this.path;
  }

  public String getValue()
  {
    return this.value;
  }

  public int hashCode()
  {
    if (this.name == null);
    for (int i = 0; ; i = this.name.hashCode())
      return i + 31;
  }

  public void setDomain(String paramString)
  {
    this.domain = paramString;
  }

  public void setExpires(String paramString)
  {
    this.expires = paramString;
  }

  public void setMaxage(Integer paramInteger)
  {
    this.maxage = paramInteger;
  }

  public void setName(String paramString)
  {
    this.name = paramString;
  }

  public void setPath(String paramString)
  {
    this.path = paramString;
  }

  public void setValue(String paramString)
  {
    this.value = paramString;
  }

  public String toString()
  {
    Object[] arrayOfObject = new Object[3];
    arrayOfObject[0] = this.name;
    arrayOfObject[1] = this.value;
    arrayOfObject[2] = this.maxage;
    return MessageFormat.format("CookieHolder [name={0}, value={1}, maxage={2}]", arrayOfObject);
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.burstly.lib.network.beans.cookie.CookieHolder
 * JD-Core Version:    0.6.2
 */